package com.thoughtworks.InnerClassAndLambda;

/**
 * Created by yrzhang on 10/8/16.
 */
public class RunnableCase {
    public final int value = 4;
    private int result;

    public void doIt() {
        int value = 6;

        Runnable r = new Runnable() {
            public final int value = 5;

            @Override
            public void run() {
                int value = 10;
                result = this.value;
            }
        };

        r.run();
    }

    public int getResult() {
        return result;
    }
}
